package com.kfm.boot.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;

import javax.servlet.http.HttpServletRequest;

@Controller
@CrossOrigin
public class HelloController {

    @GetMapping("/hello")
    public String hello(String name, HttpServletRequest request){
        return "templates/hello.html";
    }
}
